package com.aaa.config.log;

/**
 * @className StdOutImpl
 * @Description Mybatis日志的打印
 * @Author wyy
 * @Data 2021/1/13 9:41
 * @Version 1.0
 */
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.logging.Log;

@Slf4j
public class StdOutImpl implements Log {

    public StdOutImpl(String clazz) {
    }

    public boolean isDebugEnabled() {
        return true;
    }

    public boolean isTraceEnabled() {
        return true;
    }

    public void error(String s, Throwable e) {
        log.info(s);
        e.printStackTrace(System.err);
    }

    public void error(String s) {
        log.info(s);
    }

    public void debug(String s) {
        log.info(s);
    }

    public void trace(String s) {
        log.info(s);
    }

    public void warn(String s) {
        log.info(s);
    }
}
